#include<stdio.h>

#define size 10

int *dynBubblesort(const int a[],int size)

int main()
{

  int i,pass,hold;
int *newArray;
 newArray=malloc(10*sizeof(int));

if (newArray==NULL)
{
  RETURN NULL;
}
else
{
for(i=0;i<size;i++)
{
newArray[i]=a[i];
}
for(pass=1;pass<size;i++)
{
for(i=0;i<size-1;i++)
{
if(newArray[i]>newArray[i+1])

{
    hold=newArray[i];

   newArray[i]=newArray[i+1];

   newArray[i+1]=hold;
}
}
}
return newArray;
}
}

